<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">订单资产明细</h4>
</div>
<div class="wrapper" ng-controller="goodsHistoryCtrl">
    <div class="panel panel-default padder-v padder-md">
        <div class="fa-border">
            <table class="table m-b-none table-striped table-responsive">
                <thead>
                    <tr>
                        <th width="200">商品名称</th>
                        <th>商品信息</th>
                        <th>是否返利</th>
                        <th>优惠金额</th>
                        <th>让利值</th>
                        <th>让利金额</th>
                        <th>获取消费分润</th>
                        <th>获得金额</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in goodsHistory">
                        <td>{{item.goodsName}}</td>
                        <td>
                            <span>商品分类：{{item.typeName}}<br></span>
                            <span ng-if="item.skuContentName != null">规格属性：{{item.skuContentName}}<br></span>
                            <span ng-if="item.skuContentName == null">规格属性：未开启<br></span>
                            <span>商品单价：{{item.price | number:2}} 元<br></span>
                            <span>购买数量：{{item.number}} 件</span>
                        </td>
                        <td>
                            <span class="label bg-light" ng-class="{0:'bg-light',1:'bg-success'}[item.isOpenRebate]" ng-bind="{0:'未开启',1:'已开启'}[item.isOpenRebate]"></span>
                        </td>
                        <td>{{item.couponsMoney | number:2}} 元</td>
                        <td>{{item.profit}}%</td>
                        <td>{{item.profitMoney | number:2}} 元</td>
                        <td>
                            <label class="inline" ng-if="item.isShare == 1">
                                <span>消费分润占比：{{item.shopGetBenefitRation | number:2}}%<br></span>
                                <span>消费分润金额：{{item.shopGetBenefitMoney | number:2}} 元</span>
                            </label>
                            <label class="inline" ng-if="item.isShare == 0">
                            <span>该消费者并非您所推荐</span>
                        </label>
                        </td>
                        <td>{{item.shopMoney | number:2}} 元</td>
                    </tr>
                </tbody>
            </table>
            <div ng-if="goodsHistory.length<=0 && !app.loading" class="padder-v text-center">
                <span class="h6">~未搜索到任何数据~</span>
            </div>
            <div>
                <circle-loading ng-if="app.loading"></circle-loading>
            </div>
        </div>
    </div>
</div>